#ifndef tranzam_main
#define tranzam_main

#include "../../../../../axl_framework.h"
#include "../libraries/mappyal.h"
#include "game_car.h"

using namespace AXL_Projects;

//constants
	const float PI_Conv=AL_PI/180;

//function declarations
	//transam.cpp
	bool SetupGame();
	void EndGame();
	
	//game.cpp
	bool TransAmGameLogic();
	bool TransAmGameDrawing();
	bool NewLevel();
	void CleanUp();
	bool InitialiseLevel();
	bool LoadLevel();

	//menu.cpp
	bool TransAmMenuLogic();
	bool TransAmMenuDrawing();

//globals
	//main library variables
	extern Framework* GameFramework;			//framework
	extern AnimationLibrary* GameLibrary;		//our graphics library
	extern Configuration* GameConfiguration;	//our configuration object

//timer stuff
	extern volatile int TimerCurrentFPS;

	//main game graphics
	extern Animation* DisplayPanel;
	extern Animation* DisplaySpeedo;
	extern Animation* DisplayTemperature;
	extern Animation* DisplayFuel;
	extern Animation* PanelCars[];
	extern Animation* Cup;

	//map stuff - where to show the map
	extern int ScreenXOffset;
	extern int ScreenYOffset;
	extern int ShownMapWidth;
	extern int ShownMapHeight;

	//car
	extern fix FIX_ANGLE[];
extern bool TempDebug;
#endif
